package com.luoyx.hauyne.admin.sys.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 校验同一个字典类型下，字典标签的唯一性 查询参数Query类
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class DictItemNameUniqueCheckQuery {

    /**
     * 排除的字典值id（编辑字典值编码的场景）
     */
    @ApiModelProperty(value = "排除的字典值id（编辑字典值编码的场景）")
    private Long excludeDictItemId;

    /**
     * 字典类型Id
     */
    @ApiModelProperty(value = "字典类型Id", required = true)
    @NotNull(message = "字典类型Id不能为空")
    private Long dictTypeId;

    /**
     * 字典值名称
     */
    @ApiModelProperty(value = "字典值名称", required = true)
    @NotBlank(message = "字典值名称不能为空")
    private String dictItemName;
}